package com.longtxt.core.ble.model

enum class BleRequest {
    GET_DAILY_DATA,
    GET_DAILY_HEALTH,
    SYNC_OS,
    SYNC_PLATFORM,
    FIND_BAND,
    RESET_BAND,
    SET_ALARM,
    SET_ANTI_LOST,
    SET_HEART_RATE_SETTING,
    SET_LIGHT_UP,
    SET_SCREEN_SAVER_INTERVAL,
    SET_WEATHER,
    SET_CAMERA_STATE,
    LISTEN_CAMERA_OPEN,
    SEND_SCREEN_START,
    SEND_SCREEN_DATA,
    SEND_MARKET_SCREEN_START,
    SEND_MARKET_SCREEN_DATA,
    SEND_SCREEN_PARAMS,
    GET_HEADSET_MAC_ADDRESS,
    SET_INITIAL_CONNECTION,
    COMMAND_SWITCH_WATCH;

    val requestId: Int
        get() {
            return when (this) {
                GET_DAILY_DATA -> 0x01
                GET_DAILY_HEALTH -> 0x02
                SYNC_OS -> 0x03
                SYNC_PLATFORM -> 0x04
                FIND_BAND -> 0x05
                RESET_BAND -> 0x06
                SET_ALARM -> 0x07
                SET_ANTI_LOST -> 0x08
                SET_HEART_RATE_SETTING -> 0x09
                SET_LIGHT_UP -> 0x0A
                SET_SCREEN_SAVER_INTERVAL -> 0x0B
                SET_WEATHER -> 0x0C
                SET_CAMERA_STATE -> 0x0D
                SEND_SCREEN_START -> 0x0E
                SEND_SCREEN_DATA -> 0x0F
                SEND_MARKET_SCREEN_START -> 0x10
                SEND_MARKET_SCREEN_DATA -> 0x11
                SEND_SCREEN_PARAMS -> 0x12
                GET_HEADSET_MAC_ADDRESS -> 0x13
                SET_INITIAL_CONNECTION -> 0x14
                LISTEN_CAMERA_OPEN -> 0x15
                COMMAND_SWITCH_WATCH -> 0x16
            }
        }
}